{% extends 'Pyi/menu.html' %}
{% block navbar-collapse %}
	<ur class="nav navbar-nav navbar-right">
		<li ><h3><span class="label label-success">{{ name }}</span></h3></li>
		<li>&nbsp</li>
		<li>
			<form class="navbar-form" method="post" role='form'>
				{% csrf_token %}
				<button class="btn btn-primary btn-lg" name="logout" value="logout" action="" type="submit" >Log out</button>
				
			</form>
		</li>
	</ur>
{% endblock %}
{% block user_name %}
	Welcome<h4><strong class="text-success"> {{ name }}</strong></h4>
{% endblock %}

{% block content %}
<div class="row">
	{% if questions %}
		{% for question in  questions %}
			<div class="col-md-4">
				<h2>{{ question.question_type}}</h2>
				<p class="text-danger">{{ question.pub_time }}</p>
				<p>{{ question.question }}</p>
				<form class="form-default" role="form" method="post">
					{% csrf_token %}
					<button class="btn btn-sucess btn-lg" type="submit" name="id" value="{{ question.id }}">>>> Detail </button>
				</form>
			</div>
		{% endfor %}
	{% else %}
		<div class="label label-primary">No any Question !!</div>
	{% endif %}
</div>
{% endblock %}